Fixed slice() problem on node.js 0.6 and 0.8.