[TASK] Refactor util.js to AMD module