reduced javascript for sidemenu navigation