remove redundant functions
remove document.getElementById where it's not needed
Fix width="XXpx" height="YYpx" to width="XX" height="XX"
Merge pull request #142 from greggman/remove-redundant-funcs

Remove redundant funcs