Update utilitiy.js

refactor