svir_viewer_sub.js - work in progress