added JS Functions task 6