bit twiddling hacks code bricks for JavaScript