details js fix