Attempted to use ajax with betting