getElementsById -> getElementById

fixed small typo in code that leads to error