$(document).ready(function () { if (window.is_curator) { bg_init_rw_tag_dialog(); } else { bg_init_ro_tag_dialog(); } });