Added Node.js/MongoDB back-end functionality courtesy of Tony Quinn (https://github.com/tonyq)