display txt and jpg in browser

#218