Is this intended JS behavior? - Theo's Typesafe Cult