JS error now sending details to server; php-mysql option now logging data in a MySQL DB table