BUG: http://stackoverflow.com/questions/643542/doesnt-javascript-support-closures-with-local-variables