Modify menu item links by js

* Add '/#' to menu item links
* Little refactor