Flatten a web pages deeply and make it portable