Textures in javascript are now a object rather then a pointer