undefined isn't a function quick fix