Postgresql String To Array Length Jquery