Client JS as module

Would you consider changing client.js into a require-able module that is also usable outside the browser? I played around with this and it was fairly easy to have it working in both cases. This would also make testing much easier.