Tool for teaching function closures in Javascript