javascript assignment-part 2