removed unneeded rename command (it didn't work anyway)
cleaned up admin.js