Update core.js

fix z index issue for datepicker in modals