function bytesFromStringArray(arr) {
	  if (arr == null) {
	    return 0;
	  }

	  var bytes = 0;
	  arr.forEach(function (x) {
	    return bytes += x.length;
	  });
	  return bytes;
	}
Returns the approximate number of bytes allocated in the string array - 2
bytes per character. Computing the exact bytes for a native string in JS is
not possible since it depends on the encoding of the html page that serves
the website.