accommodated apigee limit API by looping only through the first 5 entries of the 10 returned. also changed 'fetch' event as callback from peps.addEntity when a new pep is successfully written, rather than fetching no matter what
added alert() to page when addEntity fails