Hi Dan
I've been using DNN for about 10+ years, never touched JavaScript - ask yourself why you need it?
Indeed until recently I've not touched any code. Now I've learnt the POWER of SQL I'm building sites using DNN, Reports, and DataSprings Dynamic Forms. Anything 'fancy' all done in SQL.
You state it is Spaghetti - DNN s very powerful, I've just started working with another powerful (not web) system again the implementation allows Spaghetti
I would say take a step back, analyse the real needs and simplify.
All the best
Dave