simplifying my exclusive or with JS bang bang operator