shifted to getElementById to support outdated browsers
merge