Added Ajax functionality to the application.