Fix strict mode errors.
Merge pull request #9 from abucur/fix_strict_mode

Fix strict mode errors