math floor and math ceil in javascript