added ajax request and added some javascript