add learing javascript - scope