Tag functional programming JavaScript