Improve demo - reload and switch type (javascript) links; use PHP for main demo page for random number generation.