Javascript fix to improve insert row alignments