Update demo.php

Tidied up a bit.