added test code to test out ajax