Minor updates to the javascript.