Ajax with CI Restful API