It’s important to look at how many times you perform a specific funtion. If you do that Math.ceil one time in your code, then I think it’s not worth the confusion these type of optimizations can give.
Make sure to check Google developer tools in Chrome. They have lot’s of great tools to help you profile and optimize your code.

