fix showcontent js function and addpacket