Update corefunctions.js