Update "reset" functionality

Using es.5 version of clearing a array: setting the length to zero.
Merge pull request #1 from ThePanuto/patch-1

Update "reset" functionality