The changes are marked below. Generally, I switched to floating point:
Here is a live demo, you can check the full source code there:
The changes are marked below. Generally, I switched to floating point:
Here is a live demo, you can check the full source code there: