added ajax. 1 method working, trying to get more efficient json method working