Number.isInteger removed to support IE