Stuff to intercept javascript HTTP and make proxy server