strict fix: Duplicate key in object literal.
strict fix: Can't use octal constants.
strict fix: Don't define functions within conditionals or try blocks.
Merge pull request #2143 from waywardmonkeys/strict-fixes

Strict fixes