More JS fixes for the Settings Controller.