sending kernel data from js to shader