Stop an error by hooking some stuff into wp_enqueue_scripts