Extract, lint and minify javascript