changes to startApp.js to suit PolarCape needs