Adding Token class to JavaScript.