use latest version npm

fix then block in Promise  #1

fix test for Promise  #1

move library into "lib" directory