Update core.js

set current page on resetPosition