Convert WebCL code to match current API
Updated WebCL code to match current API
Merge changes from development branch