Fix JS syntax error in setting title of input for display