Updating  syntax to support hasAndBelongsToMany relationships. Squelching some jshint errors.