Binary subtraction in javascript.