Update index.js
Update README.md
Update README.md
Update example.js
Merge pull request #1 from antz29/support_multiple_types

Support multiple types