cleaned up javascript. navigation animation now done with transition in CSS