Setting global root_url for JS use