Erlang-like pattern matching in JavaScript | Hacker News Reader