I assume it doesn't matter where I put the pop up files
if by this you mean the jscript files... you MUST put them in the jscript folder...

if you mean does it matter where you put the code that has the link and the "=rel console ....." no, you can put that most anywhere...

Also by {template_directory} do you mean my custom template
YES! that is correct! :)