handle duplicate keys
IE8 compability
add duplicate keys to example.js
Merge pull request #2 from kesla/duplicate-keys

handle duplicate keys