Fix IE8 error

Can't use array indexing on strings in IE8
Merge pull request #13 from hzdg/ie8fix

Fix IE8 error