bugfix: should be calling processJsVars() before rendering the select_event form.