Clean up Framebuffer.js, and fix mipmap error?