add setImmediate polyfill and use it, add eventqueue and future stubs
update js lib