Fix bug with unreadable file when asked for content.
viewfile.js: Use messages