Correct file extension
Corrects $vars['page_top'] check
Automatically add JS files of the same name as the .tpl.hbr

When loading sample.tpl.hbr, module will now check for and load any
sample.hbr.js in the same directory.