moving loadData into Location.prototype