Basic JavaScript implementation of FizzBuzz