Updating solution to Collatz Conjecture

JavaScript Solution