Externalize js