added javascript sample from developer.apigee.com