Updated js file with further animation.