Javascript. Hometask2.