add a proxy for send from javascript