JavaScript implementation of FizzBuzz