Update popup.js

Improved check the global variable 'chrome'.
Standalone v1.0

All in one HTML