Externalize inline scripts.