added JS Functions task 3