jquery bug fixes / refactoring jquery + erb/routes

This does several things wrong.

Gathers the entire table from the DB followed by several other DB queries within the erb file that seek out all the associations. 

The overall requests for this totaled 88, roughly.