ajax.js: changed parseInt to Math.round