Fixed return value for ArrayList#remove in js library.