clean up texture.js