more anonymous functions
fixed jsdoc type for "onlyWebGL" parameter