Added the base_url for Javascript.