ajax workaround