Avoid error when not using iron-router

If not using iron-router Router is undefined, so if(Router) throws an exception. Using window.Router avoids this error.