solved JS DOM task 2