Minor improvements to admin javascript.