minified viewer js