Set optimization level of google closure compiler to 'SIMPLE_OPTIMIZATIONS'. This solves an issue where the an WebGL error is thrown when an texture image is set via a data URI. This is weird, and I suspect a timing issue which has nothing to do with the compiler setting. For now this is the solution, but we have to investigate this!
Removed progressbar, as it caused to many problems in our setup