added globals to parameters, added main.js