Update main.cpp

Make startURL avialable before initialization finished
Merge pull request #1 from CODeRUS/patch-1

Update main.cpp