Functional programming concepts applied to web app UIs