jQuery simple REST API class