Moved out JS code from html file
hide Cupola image if Earth is not installed
Merge pull request #1 from opptic/master

JS move and earth installed check