From Jon Madden: Make check_sites_bookmarklet.js work better with non-production environments

Jon updated the javascript to make it work better with non-production environment. I've just re-structured the configuration file and slightly modified the js code to work with the new configuration.