HtmlResultFormatter: moved details link initialization to js