Javascript Switch Case Statement In Arduino