handle escaping correctly in converting ruby array to javascript for updating dt rows