I'd say if you need minimap / code folding, you should consider refactoring, splitting your code in to smaller modules and helpers.
Here's a nice YouTube video series about refactoring (also about creating Super Mario with JavaScript from scratch 🙂): youtube.com/watch