Moved Admin functions to Admin.js