use js rather than put for HTTP transport