Fix self / this scope error in ajax callback.