fixed examples/index and replaced es6-shim

* removed full es6-shim and replaced with shims for individual functions