waterfall js fix1