enqueue only in frontend and use wp_register_script