JS. Functions homework