add typeof HTMLElement = function, fixes #16