Moved the equals function to a prototype method in the Token class.