Almost working (loadData is undefined)