fix the uncaught error for using module on the client side in util.js