Change from pure jQuery to angular-wrapped jQuery