modified 2 types demos, document and div.