JavaScript - Math problem, and general coding issues

Printable View