Index: page.inc
===================================================================
--- page.inc	(revision 285)
+++ page.inc	(working copy)
@@ -91,7 +91,7 @@
   //messages
   $response['messages'] = drupal_get_messages();
 
-  print drupal_to_js($response);
+  drupal_json($response);
   exit();
 }
 
