Update core.js

browser compatible for date rule