RESTful JS requests.