Refactored mobile.js to use module pattern, much cleaner. still don't have tests working, oh well
refactor of backend is almost done. have to go
Ok, refactor of backend to module pattern complete. If it seems like I'm trying to confuse you, I'm not. The module pattern is much easier to read and digest - just think of the mobile and backend as classes
A few more finishing touches to complete the refactor. Mobile and Backend are the only global variables that each client adds to the page (that is a very, very good thing with regards to JavaScript best practice). Everything is kicked off when their public function connect() is called. I'll send you a link to explain the module pattern. Everything should work as expected, but without tests... who knows? haha