convert external js file to inline