JavaScript - last assignment part 2