Load script file dynamically

Load script file dynamically

Hi there! This is my first post in this forum, and, since I just started with JQuery, definitely not my last ;)

Here's my current problem:


When I try to load google maps dynamically with $.getscript() with a
click on a button, the script tries to redirect me for some reason.
What am I doing wrong?


Please help, I've been stuck on this for hours

Here comes the code:
http://pastebin.org/44481

Cheers,
lamy.