Rewrote viewer plugin as Backbone.View module. Windowresizing now works.