JavaScript parity check

a%2n === a&(2n-1), but the latter’s faster