Is there a way to iterate through page elements in JS so you don't have to use the syntax document.getElementById('ctrlName') ?