Fixed jQuery caching related memory leak