Update spectrumViewer.js