From the stackoverflow.com: http://stackoverflow.com/questions/2757203/how-to-decode-a-string-in-a-varible-in-javascript