On the usage of functional programming concepts in JavaScript programs