Fizzbuzz code challenge in JavaScript