getElementsById -> getElementById

small typo fix in code that leads to error