puts form input into js var