use relative links so html can be visualized directly from the file system
remove unnecessary io/resource call