utils.js

js functions for general coding needs