updating with the lastest from usergrid-javascript-sdk