Updated demo to accept input and diff on the fly

I think PSR says this HTML chunk should at least be its own file.