Javascript for ocmenu as plugin