Added comments to demo. js