1
![Stack Overflow](http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png)
After creating the element p, you'll have to append it somewhere in the document. But first, instead of innerHTML, I would create the elements and append them to p, like so:
var p = document.createElement("div");
p.appendChild( document.createTextNode("Script to calculate the eligibili...