Minor tweak on JS code for editablelist, still not fixed