initial copy from demo-jqm/cloud-push.html #1