Modify html document