Rewrote base program to use JavaScript to interface between webpage and
PHP, rather than HTML forms.