fixed the js so no bugs for sect2