Move some javascript functions outside of document.ready() so they are accessible outside of ready().
Merge pull request #200 from t-bullock/location-dropdown-fix

Location dropdowns fix