Made parse function receive a file containing the html rather than URL