modified wp_enqueue_script for child theme compatibility