Update core.js

Improve the condition to triple equal.
Merge pull request #537 from matheusazzi/patch-1

Update core.js