Cleaning up the JavaScript code somewhat.