I am porting a GPGPU script to WebGL. I am having problems getting the following code ported. THe original in C++ is:

glBindTexture(GL_TEXTURE_2D, DataArray);
...