remove dependency on jquery for device type switching event binding