Added a way to setup AJAX