Revamping admin JS