Implement JS compilation.