move admin js code