Use IE compatible Array functions

IE <= 8 doesn't have some common Array methods.
Merge pull request #1142 from tricknotes/ie-compatible-array

Use IE compatible Array functions