Create detectRouterType.js