tuning the animation js