Fixed issue where path to data wasn't set at DOM compliaton.  Moved code to get path into loadData function, so only occurs upon user click of icon, after page load.