Update viewport.js
Merge pull request #784 from im007boy/patch-1

Update viewport.js