Fix a bug in the javascript generator of the previous check-in.