More WebAppifying

Added some more lines to make it better work as a webapp. Again.