Update rest.js

http://forum.civicrm.org/index.php?topic=30460
Merge pull request #51 from KarinG/patch-1

Update rest.js