Moved some server-side functions into helper.js and wrote tests for them using nodeunit