add what-viewport.js file

The main file that contains the script.