Update hostedgraphite.js

Added proxy support. Need to test that is still works ok where there is no proxy.