Attempting to fix file load on page load