replaced call to grep that was getting network address with javascript, write a arrStrIndexOf function so it could be reused, removed the interface from 2 iptables rules as they weren't necessary