Added task 13 javascript solution