fixed and extracted the canvas-css3-scaling.js plugin