update the viewport.js.