add 'transform' method to utils.html