update getElementById so it handles multiple elements