Changed method bind name to flatMap, because of the bind JS native method