move sidemenu javascript to its own file