Cleaning up the js.