Update the javascript to the generated API version. THis has not been tested full.