Initialize class inside plugin

  1. You don’t appear to have actually enqueued your script anywhere. You registered it, but don’t enqueue it, unless that code is elsewhere.

  2. When you load a file directly like you are– aka., browsing straight to '/wordpress/wp-content/plugins/konfigurator/html/class.konfigurator.php'— you can’t use any of WordPress’ functions because you have bypassed WordPress’ boot process.

To use WordPress functions you need to load WordPress. In your case, to do that you should be using the AJAX API, or if you need the performance, implement a solution like suggested as an answer to AJAX API performance question.