Export JS to an external file and link to minified version