That one time where I played around with closures in JavaScript