Added tests. Cleaned up to make more testable. Added disabling editing on close.
Added tests and a .jshintrc
Destroy after initialize tests.
Cleanup all the things.
Merge pull request #11 from goinstant/nealstewart/2-collapse-edit

Made collapse turn off editing