IE6-8 support

- Replaced square brackets `[]` with `charAt`
- Added shims for `Array.prototype.indexOf`, `map`, and `some`

Now it works in IE6-8!