Update utils.js

removed unnecessary method