old, stripped down utilities.js