Bit twidling hacks for node.js