http agent using HTML, Jquery, Javascript, and PHP