fixes to JavaScript to finalize installer.