Create a change task from a change using Javascript

Hi,

Need details how to create a task from an already open change. I need this to mass create the tasks for a change which is already created. Need to do from javascript.