Update viewer.js