Javascript: Global var for url root