Fixed js and animation to navbar