Use strict mode
Merge pull request #91 from djw/strict-mode-fixes

Use strict mode