Added main.js for global variables and functions
Generator-field can be edited and save-button shows the level in json format; level 4 is created with generator