In theory. The Sciter engine is not far off that, though it uses its own scripting language:
EDIT: reply to c-smile below (HN won’t let me reply, sigh):
My “in theory” was referring to Kosmonaut. Then I pointed out Sciter as evidence that something similar has already been done.