javascript dynamic quiz