Refine Admin Management in Javascript