Scala's Option for JavaScript