adding comments
js comments
Removed multi-line function calls.
Fixed callbacks.
Cleaned up .m file. Fixed event subscriptions.
Fixes from Doug Farre's comments.