Added browser support for some files. However, index.js has too many features only for Node, I will do the modification later.