As detailed below remove the anti-patterns

Sorry to butt in. Of course you don't need to take this patch unless you want to but it's sooo dang frustruting to see these anti-patterns get repeated forever so I thought I'd send you a patch hoping to help stop at least one leak :P 

http://webglfundamentals.org/webgl/lessons/webgl-anti-patterns.html