Added utils.js file for basic utility functions