update message, send. and js files

made adjustments