Javascript Replace Reserved Special Characters in Form Field