fizzbuzz problem solved in javascript using for loop