I have been working on a pi calculator in javascript for a long time now and I have finally finished. The problem is that my script in the head section:
document
You have two options:
window.onload
.