Made more readable
Separate Admin Panel Javascript into it's own file
Updating formatting of promises
Updating formatting of promises
minor fix