JS fix enabling continue button