Cleaned up javascript and php code.  Moved index.php to use infinite scroll and removed index_db.php