Ensure that pombola_run_when_document_ready is defined before use

The extra_js URLs were being loaded before
pombola_run_when_document_ready was defined - this meant that a file
like map.js, which tries to call pombola_run_when_document_ready would
error.  This commit makes sure that it's defined before any of the other
Javascript runs.