Add jshint.
Fix bug in destroy. obj isn't always going to be defined as the caller may pass in an ID rather than a model instance.