You can fix the below problems at these lines by simply giving the function something to refer to for 'this'. The 4.0.1 patch removed 'this' as a keyword that refers to the current relevant object from what I understand.