Create setviewport.js