Update corefunctions.js

Fixed problem with nav background disappearing