testing mobile js switch