Javascript samples taken from @Bodil talk on Functionnal Programming at DevoxxFR 2013