Minor refactor to support strict mode

When using strict mode, a SyntaxError used to be thrown. This commit
takes care of that problem.