That discussion includes a suggestion to use supascript (which is basically PLV8 with a few goodies attached to it, so if you want to user vanilla PLV8 instead of supascript, you just need to copy-paste the JS code from the hashids.js library inside your function implementation) in a function in order to achieve that - is that NOT an option for you?