Added comments to guest javascript