Update index.js to improve performance

Main equality comparison changed to use bit-wise operators.
During testing it was only few ms faster over 1000000 iterations but still ;)