Simplifying html document