How to reverse the three functions to get the original key in this javascript ? http://pastebin.com/x700J6c7