Adds comments to explain Javascript code