more js tweaks cuz why not