create JavaScript version