Logical XOR in JavaScript
howtocreate.co.uk