Implement JS compilation. [Still needs work.]