created collatz.js