Update inviewport.js