Exploration for writing Node.js and client-side compatible code