Make router work in strict mode.

I turned functions of the form 'function foo(){}' into 'var foo = function...(){}' in Router.run, so it works in strict mode. Fixes issue #532 

Does this fix need a unit test? If so, I'm not sure how to test it.