From http://stackoverflow.com/questions/1912501/unescape-html-entities-in-javascript