Add remove function to arrays

This should work in ie9 and forward, returns the modified array so it
can be chained