Update rest.js

http://forum.civicrm.org/index.php?topic=30460