Java Ajax webapp site implementing spaced repetition