fixed counter problem and ablle to return quiz result via ajax