create window inside dom parser