Made some trivial changes to fulfill npm module package.