Basic javascript utilities that would be valuable