Updated html import to behave correctly when compiling to javascript.