add base_url js variable.