First version of ajax support