Improvements to transform.php, AJAX implementation on all pages