I have a more than 800 lines single JS file using OpenLayers to create web map. It\'s vanilla JavaScript. And it\'s definitely too much!
It is simply structured as follow