Ruby Remove Element From Array Javascript Documentation