Changing the use of done in genjs.