there are a few errors on current index.php, see attached patch [lg_diff.txt](https://github.com/ShaneMcC/LookingGlass/files/3957147/lg_diff.txt)