Follow up PR #20

In strict mode, fails with the following:

    SyntaxError: In strict mode code, functions can only be declared at top level or immediately
    within another function.

This patch prevents this SyntaxError from being thrown.