JavaScript Rest Client