Printing the block breaks AJAX?