how to pass user input into function argument. javascript tutorial