Having to restart and rebuild KnowWE after every minor change when developing Javascript (or CSS) can be very time-consuming. There is a simple way to be able to develop without restarting.
When finished editing or before you restart KnowWE, you have to copy and paste the file's content into the respective file in your plugin project!
If you don't, the file you edited will be replaced with the old file from your plugin.