Location dropdowns fix

Moved some javascript functions outside of document.ready() so they are accessible outside of that.  This fixes the ```updateElementFromPost is not defined``` error when using the country, state, and metro area dropdowns.  Not sure if this is the best way to fix this issue, but it works.