implemented fizzbuzz in javascript