Update betFactory.js