build server IP and replace it in js as a temporary fix for issue #11