Create inviewport.js