Create utilities.js

To hold the utility methods