Revert "ajax tweaks to add always promise function callback"

This reverts commit 3c440c7cb2389359c971c68d24b358cfab19d02c.