refactor a few things, move logic for jscore out of webserver, new file for dir index, fix index.html bug