Refactored client-side javascript

Moved each of the things, services, and blocks controllers into their own files