ADD to auth head script and changes to core.js