Changed token.frequency to term.frequency in server.R; thx M Jockers for pointing out bug