A spike to test out and learn functional constructs with javascript