js functions converted to basic java methods via regex. Strict in/equalities removed. WebGLProgram touched up.