Removes old/unused code from admin.js
Moves click event catching to the top of the script