Fix bug in slice: use this, not obj.

Change-Id: Id74f334ba8aaf99935585f7b3d4b25c8be1e83ac
Use Buffer slice instead of subarray for node.js compatibility.

Change-Id: Ia7cd30ae0651a46363ea99c50bd5e26dbcb8b949