syntax fixes

runs again, but still have problems with AJAX continuing to load stories