externalize js