added JS Functions task 2