Update texture.js