#633156 follow-up by effulgentsia and yched: Clean up AJAX tests, add sister function to drupal_js_encode().