Making everything relative -- supports opening index.html as a file now