File-specific hooks fired correctly

Hook file "something.js.bufwritepost.vimhook" will fire even when the file
has a pathname like "/foo/bar/something.js"
Consolidating lots of repeated code