Slice out lots of unnecessary html snippets