math ceil and math floor in javascript