There isn't currently easy solution because viewer (both APS Viewer and Tandem Viewer) are polluting global namespace. There can be some options:
USE_LMV_APP_NAMESPACES
to true and define own namespace using LMV_APP_NAMESPACE
, for example:<script>
window.USE_LMV_APP_NAMESPACES = true;
window.LMV_APP_NAMESPACE = 'myApp';
</script>
This should be set before loading first viewer script. Note this option wasn't thoroughly tested and may have some limitations.