how to send input value in javascript