(#513) correctly add closure (again).
(#546) broke out ajax