Visualization of Pi calculation with the Monte Carlo method using Canvas and JavaScript