Update tjhe js definition generation.
Update unit tests in order to generate the js file.