[js] make Array.remove always use indexOf because we have it as a feature now