mid point to es6 shim