Bug 1006526 - Refactor zoom.js r=kgrandon