added JS Functions task 4