Update getViewport.js