finished rewriting enhance.js to make the menu system work as required for js enabled users