Moved direct Javascript execution aout of the index.html into App.js