Fix equality compare, fixes jshint