Fix issue with getElementById
Merge pull request #341 from arv/get-element-by-id

Fix issue with getElementById