ajax promise closes #25