moving menu into js and adding on page load