Play Understanding Monads with JavaScript