Streamline javascript

In addition to indentation issues, open_framework.js and override.js can never run at the same time, since they share an identically named behavior.

Also, .removeAttr() only takes one parameter, and that code was silently failing.

All of the class switching code was performing new selections every time, I rewrote it to only run once, as needed.