Fixed issues with cell editing

When trying to edit a cell I got an 'undefined is not a function' error. It turns out that the method `is()` does not exist on `angular.element`. Instead we need to use `hasClass()`.