helpers.js (client/server); closes #1275