[compablity] use native setImmediate in node-webkit