adds comments to the complicated javascript
finishes comments for javascript