fixed close window bug, zoom bug, and moved functionality inside graphics_moz.js to annotation.js