RestFul for AJAX application