module system

The module system is working now, as it should. To test it you can
easily open the index.html file in a browser and open the console.