alternate html to dom