Hide menu from template build vs javascript after page load