fix IE HTMLElement Bug

This fixes issue #5