function em_enqueue_public()
{
    EM_Scripts_and_Styles::public_enqueue();
}
 function enqueue_admin_script()
 {
     global $pagenow;
     if (!empty($_REQUEST['page']) && ($_REQUEST['page'] == 'events-manager-forms-editor' || $_REQUEST['page'] == 'events-manager-bookings' && !empty($_REQUEST['action']) && $_REQUEST['action'] == 'manual_booking')) {
         wp_enqueue_script('events-manager-pro', plugins_url('includes/js/events-manager-pro.js', __FILE__), array('jquery', 'jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-position'));
         //jQuery will load as dependency
     }
     if ($pagenow == 'user-edit.php') {
         //need to include the em script for dates
         EM_Scripts_and_Styles::admin_enqueue();
     }
 }