deferred ajax in jquery with a cached results