Proposed new JS structure to better encapsulate scripts. Might be overkill for small projects, but it's not that hard either. I think we should try it.
Removed console.logs