fixed up admin.js