Change register_scripts to print_scripts. Add comments.
Change hooks to allow inclusion in a theme.