Enable strict mode. Remove repeated code (document.getElementById). Remove semicolons from start file.
More readable code when you add some break lines. Rewrite sum() method (use reduce).