added comments to report javascript

refs #87