Compile js for export.