I consider this a hack, and am open to alternatives, but it is a necessary hack at this point.  Removing it will result in javascript errors because `nan` is not a javascript keyword.