Download resources using AJAX and store for temporary offline usage