solved JS DOM task 3