added jquery ajax call to compute the result