updated fizzbuzz.js to have closure and prototype