Fixed rule of replacement calculating, added test cases for the getFactFromHTML function, and implemented display of results. No events yet, and the CSS still looks bad, buts it's functional at least.