fixed pointer mapping bug in SpiderMonkey implementation, start of new event dispatch