updating auto split, with javascript array to string instead of string replace