#94 fix typeof for IE

Case: https://github.com/railsware/js-routes/issues/94