Moved JS into admin.js