simple javascript engine for graded quizes