Fixed error in JS that kept data from loading