Update index.js to improve performance

Main equality comparison changed to use bit-wise operators.
It is only few ms faster over 1000000 iterations but still ;)