Move javascript to window.onload & other stylistic changes.