add base path to js setting, homepage template & content