Introduced server side URL as a global variable on top of .js file