Log PHP vars & messages to the Javascript console