JS UI & DOM Exam - task 2: fixed bug with prev/next navigation