replace ceiling by ceil in js Math