completes fizzbuzz in javascript