Changed getElementByID to getElementById in the code sample