Added a javascript generator.