@Hawkee change
console.log(this.originX,this.originY,this.originX,0,this.step);
to
if (navigator.appName == 'Microsoft Internet Explorer') console.log(this.originX,this.originY,this.originX,0,this.step);
making more use of jQuery would eliminate the need for browser checking