Fix jshint error on moment, animation loop