Modified PHP and JS to fix bug

Working to get Books to load, Unable to test properly on test server
since db_conn was unavailable. Need to get on test server.