Implement the missing getElementById and getElementsById methods