I've found the extension I used but it's PHP only by the look of it:
Works like a charm, though. I reckon @Hyperbytes could create a NodeJS version