A promise pattern baesd sync programing toolkit for javascript