add lib; replace query by querySelector