solved JS Functions all tasks