var Viewer = function(viewer) { var className = "Viewer"; var items = []; function setDoodles(_doodles) { doodles = _doodles; for (var i=0; i