Add js files to output
rewrite in scala