SpriteTest updated for html5