Fixs #847

#847
Generally it's advised to use `===` for equality checking in javaScript. Not a major issue, just nitpicking :smile: