functionfl javascript Part2 (all done)