refactoring main.js
Merge branch 'master' of github.com:nmaisonneuve/gsv_depthmap