Fix some errors reported by ESLint
Fix some errors reported by ESLint

ESLint reported several errors and warnings for `engine.js` that can be
easily fixed, so I fixed them.

frostburn/panel-league,frostburn/panel-league