Now compiles on non-js. Improve ScaleSprite