fixing syntax errors in utilities.js