handle pb and lb tags encountered without leading whitespace
add JSON output for msview; refine HTML view