implemented closures to protect correctCounter from global scope

  * also implemented object literal for comparison & understanding