Added utilities.js, minor changes