a toy browser to learn parsing and dom