Working on Dom Traversal and Selected Text