Clean up JS code
Clean up JS code

Declare vars and don't initialize the last filter name to the default
filter since doing so prevents the filter help from being displayed
until the selected filter is changed.

davec/radiant-events-calendar-extension,davec/radiant-events-calendar-extension