1. I am not sure you really want to stay on the client side.
2. If you stay on the client side, you don't need Ajax, because Ajax is used for updating components in the client page with data coming from the server.
You can set a timer triggering a function that will change the content of your divs with