Created module utils.js for generic helper functions