added ajax and javascript