missing namespace here. should be cc.EventListenerPhysicsContact instead of EventListenerPhysicsContact.
the same issue in the rest parts.