Improve express error handling
Output proper doctype