Initial javascript generator.