Fixed issue with getting non-html files

This version is still very ugly, but I moved the get requests out tof the section that looks for html files. This way it now properly does a get for all file types so that the web server can actually handle them.