Logic gates via closures in JS.