For when you need to flip some bits in JS