I wouldn't think javascript could get the local ip address, as it could be a security risk. If you're running a firewall and all web requests from your department's 50 computers use the firewalls ip address though NAT, a hacker could use the javascript to fill a hidden field in a form to enumerate your network through the firewall if he could get your users to go to his web page.