JS-149 WebResource Proxy Code fix by Martin Denham