Clean up JSLint errors. Attempt to use transferable postMessage

In newer FF/Chrome you can direct transfer buffers instead of copying them
which results in huge performance gains. Try to use this instead of normal
copy-based postMessage. *This needs to be tested*