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

... close and destroy callbacks