took javascript functions out of home.tpl and put them in their own adminUtils.js file