refs #4121 added example hook including javascript file when generating a plugin