added some stuff to jshintrc and fixed some lint errors. added tests for close and destroy callbacks
Merge pull request #8 from tagular/bugs/callbacks

added some stuff to jshintrc and fixed some lint errors. added tests for...