es6 detection fix, nodejs support fix