Make getData into a variable, not a declared function