Adding ajax support for generating diff images