HC raps govt over juvenile justice act lapses