get the proper base url from the server by using a script tag in the hea...

...d of out html