Moved JS to admin.js file