add some commonly-used ecmascript5 array related methods, etc.