Update Window.prototype.viewport

- correctly check innerHeight
Update Window.prototype.localStorage

- add detect.js
- require Window, use Window.prototype
Add some detect.js