Re-order eventbus function definitions to occur before they are referenc...

...ed, fixing in error in firefox 33

Fixes #742 

I'm sure what we were doing was a little suspect, but this also seems like a pretty nasty regression. Maybe related to https://developer.mozilla.org/en-US/Firefox/Releases/33/Site_Compatibility#Evaluation_order_of_default_parameters_and_functions_inside_function_body_is_changed?