var startValue = '0.00000002', // Don't lower the decimal point more than 4x of current balance stopPercentage = 0.001, // In %. I wouldn't recommend going past 0.08 maxWait = 500, // In milliseconds stopped = false, stopBefore = 3; // In minutes var $loButton = $('#double_your_btc_bet_lo_button'), $hiButton = $('#double_your_btc_bet_hi_button');