Testing scope in Javascript closures.