Switch Case Arduino String Functions In Javascript