Completed Fizbuzz challenge in JavaScript