move scripts to bottom of the page
use packet template when a new packet is created