Simple arithmetic functions written in javascript using only bitwise operators.