getElementsById -> getElementById

small typo fix in code that leads to error
Merge pull request #1130 from stin7/patch-1

getElementsById -> getElementById