Added utils.js - just some useful code snippets