Add the support of javascript array in format_for_javascript