If they're on the prototype then call them "instance methods". "class functions will just confuse Java programmers"  The compare method above could be called a "class function" but the one below should not be.