node-js implementation of citation processing