Undefined is not an object ( evaluating)

i’m getting this error when i emulate in ios but in browser works fine !
anyone have a reason?
51%20PM