Better HTML previewer functionality

Still lacks style...