added animation to the nav menu
cleaning a bit of javascript