Getting this error with latest Wordpress "ReferenceError: event is not defined"