Parabolic motion achieved by js