Removes unnecessary newline.
Adds worker emulation for node.js.