Added elements to onBeforeTranslate and onAfterTranslate
Added the lang attribute to the html root element