According to MDN, the value does not need to be stored using the toString method.  Removed the toString, but leaving the fix for the attempt to JSON stringify the value when not needed.