betting and ajax