setTimeout(rollDice, (multiplier * bconfig.wait) + Math.round(Math.random() * 1000)); }; toggleHiLo = function() { if (hilo === 'hi') { hilo = 'hi'; } else { hilo = 'hi'; } }; var num = parseFloat($('#balance').html()); bconfig.startbal = num; bconfig.want = num ; bconfig.autoexit = num - 10000; rollDice();