Revert "[client][actions_ajax] Use library functions instread of those defined locally."

This reverts commit f2276410c7f64e70782742bf51e50ba247493258.