start javascript generator