math floor ceil in javascript