changed promises guide for javascript