Added octal and binary number support; added ES6 version checks.