Add some utility functions in tinymce.util.Tools