Fix HXP.window for html5