Fix top-level function errors in strict mode
Merge pull request #29 from Financial-Times/fix-strict-mode-errors

Fix top-level function errors in strict mode