fixed issue with wp_enqueue_script error that could show on post or pages