fixed js-send-region
defining js-send-function