plugins/native.js fix on _slice is undefined

This fixes '_slice is not defined' error in plugins/native.js