add basic ajax interface