A JavaScript implementation of Scala's Option type