Update main.js

app now opens file it was launched with