created admin js file

moved js support admin page out of frontend js file