Added debugging comments to javascript interface.