JavaScript - last assignment Part 1