Change Math.round to Math.floor