fixing javascript & navbar