Added preliminary Ajax support.