fixed getElementsById to getElementById