Fixing stdimmer to work with jquery event objects.