html encode/decode with javascript and jquery