moved details javascript into central SEAF