Fix for wp_enqueue_script function call before wp_enqueue_scripts