Update util.js

add literal method