Fixes for getElementById