s/Number.toInteger/parseInt/

Chrome doesn't have Number.toInteger

ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt