Set up JavaScript to receive forms from the PHP script