Add Bootbox.

http://bootboxjs.com/
Move admin stuff into a separate JS file.

Also, ask for a passcode.
Make text dark in modal dialogs regardless of the theme.
Fix the admin passcode prompt.
Add a privilege-checking function.
Check for privileges when enabling Admin Mode.
Display error messages on Admin Mode errors.