implemented context option for js based migrations