Optimizes Node.js audio engine implementation.
Also fixes bug in npm package.