added jquery and ajax call (partially working)