Replaced movement script with a smoother one.

Deleted the javascript file and created a c# script.