factored out defaultLocale
added an option to build non-english HTML