adding code learned, ajax / json directory