Attempting fizzbuzz on JavaScript