Codebase cleaning, JS library updates, JS tweaks