Utilities that should be in vanilla JS