I am working with both amq.js (ActiveMQ) and Google Maps. I load my scripts in this order
You can also use the built in SharePoint javascript method to control the execution of your scripts;
_spBodyOnLoadFunctionNames.push("yourFunction");