loaded  viewer.js