added ajax subscribe example