stevevance/Chicago-Crash-Browser — pull request #30 by rguico (2014-02-26 00:30:32+00:00)
Title: Rewrite of the JavaScript file and initial implementation w/ Boostrap styles

Lots of changes here. :-D

I tackled a couple of fixes and restructured the JavaScript file using the [Module pattern](http://addyosmani.com/resources/essentialjsdesignpatterns/book/#modulepatternjavascript). I identified four modules that had distinct behaviors:

* Utility - a catchall module
* mapDisplay - focuses on interacting with the map layers
* summaryDisplay - focuses on interactions with the divs that control summary output
* crashBrowser - a small module that is the controller for the mapDisplay and summaryDisplay

Which leaves onload stuff and app initialization, which is at the bottom.

There's also a some markup w/ regard to [Bootstrap.js](getbootstrap.com) - essentially I wanted to use the button groups that Bootstrap provides, and figured at that point, I might as well just take the whole package. Which is how "About" and "Metadata" got shuffled into modal windows.

I think you'll like this update. At the very least it opens up the possibility of adding a *lot* more functionality without turning the app into spaghetti code! If you need a tour or have any questions, get in contact with me on Twitter. Thanks!