Changes to animation js2