Tag: scope of variables in javascript