fixes for the NPM package and none AMD browser support with and w/o dependencies libs