Fix code which do not work in strict mode
because of octal numbers usage and missing variable declaration.
Merge pull request #21 from phanect/strict-mode

Fix code which do not work in strict mode