added a way to queue scripts

So much like how Wordpress allows you to queue scripts inside your
header.
usuage, in your module index.php just add
$this->appendHeader("<script>alert('hi');</script>", 5);
The first part is the code which can be prettymuch anything you'd want
inside your header (<script> <style> <link> etc) and the second is the
priority.
Priority is only based on whatever else is appended.

Afterwards, just place this smarty variable in your .tpl
{$added_scripts}
Place in your header.tpl in the head or maybe your footer.tpl.