After enhancing this question and adding more code to my example, I decided to repost it in a better form. However, despite wanting to delete this one, the instructions advise against it.
If you're interested, feel free to check out my revised question at: How can I use Bootstrap & jQuery to change the container class size only when both the sidebar is activated and overlaps?