bundled amd version too
fix it to work in node