moving menu js into dom