Functional Javascript, some styling