Javascript Function Undefined When Calling The Dispatch Method

Javascript Function Undefined When Calling The Dispatch Method