Fine tune javascrip animations