base_url as global JS variable