Update "reset" functionality

Using es.5 version of clearing a array: setting the length to zero.