made site-url in javascript dynamic