Made 2 changes to the script

so the script can be accessed from outside of localhost.

thanks