Fixed a nasty JavaScript bug that was introduced by the work on the admin browser.