For the record, you can use this to round a number to (say) the nearest
var num =1.57; // number to round to nearest multiple of .25
var rf = .25; // rounding factor
var result = Math.round(num/rf)*rf;
alert (result.toFixed(2)); // result is 1.50
Math.floor rounds down to the nearest .25.
Math.ceil rounds up to the nearest .25