Finished function that allows loading from url
made a copy of index.html because it gets overwritten by the parser
Modified url option so it does not overwrite index.html