Corrected JavaScript processing of dictionary entry notes with HTML