ajax call + data retrieval in js working.