Don't reference lastIndexOf before polyfilling it.
Merge pull request #254 from bengourley/master

Don't reference lastIndexOf before polyfilling it.