Fix the path to actually send the query string along.  Also, save the IP in a variable, otherwise, race condition sometimes returns it as undefined.
Adding .gitignore file.