Quick and dirty ajax fix