Here is the JavaScript without the comments