I am using below code for sample menu.
Tree Demo
Alternatively, as long as permissions are not given, the good old tags works. You can cover the page in css and tell them what's wrong, ... without using javascript ofcourse.