Useful Ajax wrapper designed for REST calls