Fix JQuery method to set/get values from inputs