Hi,
In the issue there is a comment which indicate the following:
<cite>
Axel Faust added a comment - 29-Jan-14 12:48 PM
Note to anyone trying out the code snippet in the description: There is an error that I cannot edit / correct. The parts that read "Object.prototype.toString().apply(obj)" should actually read "Object.prototype.toString.apply(obj)"
</cite>
Based on the above mentioned, the error is not displayed and you can access to the application, the menu items will be not displayed.
In case if you need only to hide the "Shared Files" item, so, you only leave this value ("HEADER_SHARED_FILES") in the array.