Surfaceworker fix for minified file
viewer cleanup