isInteger in coffeescript