Update write_file to output valid HTML5 and change browse_command to open URLs in the default browser on OS X