reactoring: add util.js
improve icon handling