There are many errors in your page, here is just a few.
Start by replacing
var width = document.getElementById("width")".value;
with
var width = document.getElementById("width").value;
and remove a
}
at the end of
processEntries()
.
Your browser have tools to help you debug your page, with FireFox, itis in Tools > Web Developer >
There, you get a Web Console and debugger