Js functions for umi-cms