Closure state
My JS sucks :)