My take on declarative programming in JavaScript