I am working with both amq.js (ActiveMQ) and Google Maps. I load my scripts in this order
AMQ depends on prototype which the error console in FireFox says object is not defined.
Do you mean that AMQ depends on the Prototype library? I can't see an import for that library in the code you've provided.