Added polling support to CloudJS