Clean up

Cleaned up index.php to just require another php file. Added some
javascript for testing purposes.