[fix bug 842375] Fixed JS error in switching future and past events in m...

...ozillians dashboard.