Server chosing

This file is our entry point now. Maybe here you could just expose need functions and use it in "app.js" file. JQuery onload method should match better there too.