number generator using jquery and ajax