save values from input fields in javascript variables;