restructure, move creation of salamati.Viewer into index.html