Update core.js

Should have to check on homepage only. otherwise it would present problems inside webkiosk.