js: Fix encoder sbrk allocation
js: Fix encoder sbrk allocation

The size that is passed to filter is in bytes, not in floats; we were
previously underallocating and it looks like it only worked when buffers
were small enough not to trigger the overflow.

Fixes #367.

zeux/meshoptimizer,zeux/meshoptimizer,zeux/meshoptimizer