Some major structural changes and modifications to JS class structures

Broke down the file structure out of one big file.
Removed dependency on backbone (it's not needed here).