int is not defined. use Math.round.