JS E2 mod - merge all array formatters into single function