A test-driven assessment for Javascript's functional features