to support npm & browserify

squash commit for #14