Lint

Working towards removing all JSHint errors so that we can check that as a test for future PRs.
There is `Array.prototype.find`, but it's only natively supported by Firefox. I've tried to use the one that made more sense but in this case I'm not quite sure which it should be.