created Utils.js to make code more modular