changed nav bar to appear on hover and fixed js in project