Update viewport.js