The FizzBuzz problem in JavaScript