changed js to load menu